/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package byblos.negocio.informacoes;

import byblos.negocio.Idioma;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQuery;

/**
 *
 * @author Marco Aurélio
 */
@Entity
@NamedQuery(name = "InformacoesPorIdioma", query = "SELECT i FROM Informacoes i WHERE i.idioma = ?1")
public class Informacoes implements Serializable {

    @Id
    @GeneratedValue
    private int id;
    @Column(columnDefinition = "text")
    private String info;
    @Column(columnDefinition = "text")
    private String formas;
    @Column(columnDefinition = "text")
    private String politica;
    private Idioma idioma;

    public Informacoes() {
    }

    public String getFormas() {
        return formas;
    }

    public void setFormas(String formas) {
        this.formas = formas;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Idioma getIdioma() {
        return idioma;
    }

    public void setIdioma(Idioma idioma) {
        this.idioma = idioma;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getPolitica() {
        return politica;
    }

    public void setPolitica(String politica) {
        this.politica = politica;
    }
}
